package com.heima.model.behavior.dtos;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@Data
@ApiModel(description = "阅读行为请求数据")
@NotEmpty(message = "请求体不能为空")
public class ReadBehaviorDto implements Serializable {

    @ApiModelProperty(value = "文章ID", required = false, example = "0")
    @NotEmpty(message = "文章ID不能为空")
    private Long articleId;

    @ApiModelProperty(value = "阅读次数，默认为1", required = false, example = "1")
    private Integer count = 1;
}